<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    
    <head>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
        <title>
            注册 - Fly社区
        </title>
        <link rel="stylesheet" href="/php/Fly/Public/Index/css/font.css">
        <link rel="stylesheet" href="/php/Fly/Public/Index/css/layui.css">
        <link rel="stylesheet" href="/php/Fly/Public/Index/css/global.css">
        <script src="/php/Fly/Public/index/layui.js"></script>
    </head>
    
    <body>
        <div class="header">
            <div class="main">
                <a class="logo" href="<?php echo U('index/index/index');?>" title="Fly">
                    Fly社区
                </a>
                <div class="nav">
                    <a href="<?php echo U('index/index/index');?>">
                        <i class="iconfont icon-wenda">
                        </i>
                        讨论
                    </a>
                    <a href="/case/2017/">
                        <i class="iconfont icon-iconmingxinganli" style="top: 2px;">
                        </i>
                        案例
                    </a>
                    <a href="http://www.layui.com/">
                        <i class="iconfont icon-ui">
                        </i>
                        框架
                    </a>
                </div>

    			<?php if(isset($_SESSION['uid'])){ ?>
                    <div class="nav-user">
                    <a   class="avatar" href="/user/">
                        <img id="face" src="/php/Fly<?php echo $_SESSION['face'] ?>">
                        <cite>
                            <?php echo $_SESSION['nickname'] ?>
                        </cite>
                    </a>
                    <div class="nav">
                        <a href="<?php echo U('index/user/set');?>">
                            <i class="iconfont icon-shezhi">
                            </i>
                            设置
                        </a>
                        <a href="<?php echo U('index/login/out');?>">
                            <i class="iconfont icon-tuichu" style="top: 0; font-size: 22px;">
                            </i>
                            退了
                        </a>
                    </div>
                </div>
                <?php }else{ ?>

               
                <div class="nav-user">
                    <a class="unlogin" href="<?php echo U('index/login/index');?>">
                        <i class="iconfont icon-touxiang">
                        </i>
                    </a>
                    <span>
                        <a href="<?php echo U('index/login/index');?>">
                            登入
                        </a>
                        <a href="<?php echo U('index/reg/index');?>">
                            注册
                        </a>
                    </span>
                    <p class="out-login">
                        <a href="http://fly.layui.com:8098/app/qq" onclick="layer.msg('正在通过QQ登入', {icon:16, shade: 0.1, time:0})"
                        class="iconfont icon-qq" title="QQ登入">
                        </a>
                        <a href="http://fly.layui.com:8098/app/weibo/" onclick="layer.msg('正在通过微博登入', {icon:16, shade: 0.1, time:0})"
                        class="iconfont icon-weibo" title="微博登入">
                        </a>
                    </p>
                </div>

                 <?php } ?>
            </div>
        </div>
       <div class="main layui-clear">
    <div class="wrap">
        <div class="content detail">
            <div class="fly-panel detail-box">
                <h1>
                    <?php echo $ques['title'] ?>
                </h1>
                <div class="fly-tip fly-detail-hint">
                    <span>
                        <?php echo $ques['status'] ?>
                    </span>
                    <div class="jie-admin-box" data-id="10499">
                    </div>
                    <div class="fly-list-hint">
                        <a href="#comment">
                            <i class="iconfont" title="回答">
                                &#xe60c;
                            </i>
                            <?php echo $ques['answer_num'] ?>
                        </a>
                        <i class="iconfont" title="人气">
                            &#xe60b;
                        </i>
                        <?php echo $ques['view_num'] ?>
                    </div>
                </div>
                <div class="detail-about">
                    <a class="jie-user" href="/u/5086200/">
                        <img src="/php/Fly<?php echo $ques['face'] ?>">
                        <cite>
                           <?php echo $ques['nickname'] ?>
                            <em>
                                <?php echo Ctime($ques['create_time']) ?>
                            </em>
                        </cite>
                    </a>
                    <div class="detail-hits" id="LAY_jieAdmin" data-id="10499">
                        <span style="color:#FF7200">
                            悬赏：<?php echo $ques['kiss'] ?>飞吻
                        </span>
                    </div>
                </div>
                <div class="detail-body photos">
                   <?php echo htmlspecialchars_decode( $ques['content']) ?>
                </div>
            </div>
            <div class="fly-panel">
                <script type="text/javascript">
                    var cpro_id = "u2927108";
                </script>
              
            </div>
            <div class="fly-panel detail-box" style="padding-top: 0;">
                <ul class="jieda photos" id="jieda">
                    <li data-id="36014">
                        <a name="item-1496386233226">
                        </a>
                        <div class="detail-about detail-about-reply">
                            <a class="jie-user" href="/u/5086200/">
                                <img src="//q.qlogo.cn/qqapp/101235792/E1BCE1CF05C9DE3706229FFD7E38A580/100"
                                alt="zjk2017">
                                <cite>
                                    <i>
                                        zjk2017
                                    </i>
                                </cite>
                            </a>
                            <div class="detail-hits">
                                <span>
                                    36分钟前
                                </span>
                            </div>
                        </div>
                        <div class="detail-body jieda-body">
                            <img src="//cdn.layui.com/upload/2017_6/5086200_1496386231742_36468.png">
                        </div>
                        <div class="jieda-reply">
                            <span class="jieda-zan " type="zan">
                                <i class="iconfont icon-zan">
                                </i>
                                <em>
                                    0
                                </em>
                            </span>
                            <span type="reply">
                                <i class="iconfont icon-svgmoban53">
                                </i>
                                回复
                            </span>
                        </div>
                    </li>
                    <li data-id="36015">
                        <a name="item-1496386289116">
                        </a>
                        <div class="detail-about detail-about-reply">
                            <a class="jie-user" href="/u/5086200/">
                                <img src="//q.qlogo.cn/qqapp/101235792/E1BCE1CF05C9DE3706229FFD7E38A580/100"
                                alt="zjk2017">
                                <cite>
                                    <i>
                                        zjk2017
                                    </i>
                                </cite>
                            </a>
                            <div class="detail-hits">
                                <span>
                                    35分钟前
                                </span>
                            </div>
                        </div>
                        <div class="detail-body jieda-body">
                            有人吗。。。小白学习前端。。。求指点
                        </div>
                        <div class="jieda-reply">
                            <span class="jieda-zan " type="zan">
                                <i class="iconfont icon-zan">
                                </i>
                                <em>
                                    0
                                </em>
                            </span>
                            <span type="reply">
                                <i class="iconfont icon-svgmoban53">
                                </i>
                                回复
                            </span>
                        </div>
                    </li>
                    <li data-id="36019">
                        <a name="item-1496387585074">
                        </a>
                        <div class="detail-about detail-about-reply">
                            <a class="jie-user" href="/u/5086200/">
                                <img src="//q.qlogo.cn/qqapp/101235792/E1BCE1CF05C9DE3706229FFD7E38A580/100"
                                alt="zjk2017">
                                <cite>
                                    <i>
                                        zjk2017
                                    </i>
                                </cite>
                            </a>
                            <div class="detail-hits">
                                <span>
                                    13分钟前
                                </span>
                            </div>
                        </div>
                        <div class="detail-body jieda-body">
                            已经解决。。
                        </div>
                        <div class="jieda-reply">
                            <span class="jieda-zan " type="zan">
                                <i class="iconfont icon-zan">
                                </i>
                                <em>
                                    0
                                </em>
                            </span>
                            <span type="reply">
                                <i class="iconfont icon-svgmoban53">
                                </i>
                                回复
                            </span>
                        </div>
                    </li>
                </ul>
                <div class="layui-form layui-form-pane">
                    <form action="/jie/reply/" method="post">
                        <div class="layui-form-item layui-form-text">
                            <a name="comment">
                            </a>
                            <div class="layui-input-block">
                                <textarea id="L_content" name="content" required lay-verify="required"
                                placeholder="我要回答" class="layui-textarea fly-editor" style="height: 150px;">
                                </textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <input type="hidden" name="jid" value="10499">
                            <input type="hidden" name="daPages" value="1">
                            <button class="layui-btn" lay-filter="*" lay-submit>
                                提交回答
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="edge">
           <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                最近热帖
            </dt>
            <?php foreach ($hotview as $row) { ?>
                 <dd>
                <a href="<?php echo U('index/jie/index',array('id'=>$row['id']));?>">
                    <?php echo $row['title'] ?>
                </a>
                <span>
                    <i class="iconfont">
                        &#xe60b;
                    </i>
                    <?php echo $row['view_num'] ?>
                </span>
            </dd>
           <?php } ?>
           
           </dl>
      
        <dl class="fly-panel fly-list-one">
            <dt class="fly-panel-title">
                近期热议
            </dt>
            <?php foreach ($hotanswer as $anrow) { ?>
                <dd>
                    <a href="/jie/10377.html">
                        <?php echo $anrow['title'] ?>
                    </a>
                    <span>
                        <i class="iconfont">
                            &#xe60c;
                        </i>
                        <?php echo $anrow['answer_num'] ?>
                    </span>
                </dd>
          <?php  } ?>
        
        </dl>
     
    </div>
</div>
        <div class="footer">
            <p>
                <a href="http://fly.layui.com/">
                    Fly社区
                </a>
                2017 &copy;
                <a href="http://www.layui.com/">
                    layui.com
                </a>
            </p>
            <p>
                <a href="http://fly.layui.com/jie/3147.html" target="_blank">
                    产品授权
                </a>
                <a href="http://fly.layui.com/jie/8157.html" target="_blank">
                    获取Fly社区模版
                </a>
                <a href="http://fly.layui.com/jie/2461.html" target="_blank">
                    微信公众号
                </a>
            </p>
        </div>
       
    </body>

</html>